package metrics_cli

import (
	"fmt"
	"gluenet/modules/manager/server/adapter/metrics-cli/etcd"
	"gluenet/modules/manager/server/adapter/metrics-cli/jaeger"
	"gluenet/modules/manager/server/adapter/metrics-cli/prom"
)

func Install() error {
	if err := jaeger.Install(); err != nil {
		return fmt.Errorf("install jaeger %v", err)
	}
	if err := etcd.Install(); err != nil {
		return fmt.Errorf("install jaeger %v", err)
	}
	if err := prom.Install(); err != nil {
		return fmt.Errorf("install jaeger %v", err)
	}
	return nil
}
